<?php
!defined('ACCESSING') && die('Hacking attempt');

session_start();

header('Content-Type:text/html;charset=utf-8');
// 中国东八区应该是GMT+8，但是PHP设置为：Etc/GMT-8。
function_exists('date_default_timezone_set') && date_default_timezone_set('Etc/GMT-8');
define('D_R', $_SERVER['DOCUMENT_ROOT']);
$BASE = array(
	'db_host'=>"localhost",
	'db_name'=>"jm101",
	'db_user'=>"root",
	'db_pass'=>"",
	'prefix'=>"jm_",
	'sitepath'=>"/",
	'corepath'=>D_R."/core/",
	'temppath'=>D_R.'/tpl/',
	'publicpath'=>D_R.'/public/',
	'encode_key'=>"VwLSs3267A",
	'usergroup'=>array('ADMINISTRATOR','USER'),
);

include_once $BASE['corepath'].'mysql.class.php';
include_once D_R.'/comment/common.func.php';

$db = new Mysql($BASE['db_host'], $BASE['db_user'], $BASE['db_pass'], $BASE['db_name']);
?>